package com.escape.oss.adapter;

import com.escape.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * @Author: escape_zebra
 * @CreateTime: 2025-01-02  21:28
 * @Description: TODO
 * @Version: 1.0
 */
public class AliYunStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucketName) {

    }

    @Override
    public void uploadFile(MultipartFile multipartFile, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {
        LinkedList<String> stringList = new LinkedList<>();
        stringList.add("aliyun");
        return stringList;
    }

    @Override
    public List<FileInfo> getAllFile(String bucket) {
        return Collections.emptyList();
    }

    @Override
    public InputStream downloadFile(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucketName) {

    }

    @Override
    public void deleteFile(String bucket, String objectName) {

    }
}
